package com.wx.cloud.permission.mapper;

import com.wx.cloud.permission.model.Role;
import java.util.List;
import java.util.Map;

public interface RoleMapper {
    List<Role> getRoleList();

    List<Role> getSelectList(Map<String, Object> data);

    int getSelectCount(Map<String, Object> data);

    int addRole(Role role);

    int updateRole(Role role);

    int delRole(Role role);

    int updateState(Role role);

    Role getRoleById(Integer id);

    int getCountByRole(int roleId);

    int updateRoleCount(Map param);

    Role getRoleByUserCode(String userCode);
}
